<template>
    <div class="paydetail_b">
        <v-header ref="header"></v-header>
        <div class="paydetail_box" :style="{height:docHeight}" ref="box" v-show="success">
            <div class="paydetail">
                <img src="../assets/pay_01.png" alt="">
                <div class="paydetail_title">核销成功</div>
                <div class="paydetail_discount">8.8<span>折</span></div>
                <div class="paydetail_plus">PLUS折扣</div>
            </div>
            <div class="paydetail_info">
                <p>会员：2020223555588</p>
                时间：2020-03-30  14:29
            </div>
        </div>
        <div class="paydetail_box" :style="{height:docHeight}" ref="box" v-show ="!success">
            <div class="paydetail_fail">
                <img src="../assets/pay_03.png" alt="">
                <div class="paydetail_fail_title">核销失败</div>
            </div>
            <div class="paydetail_info">
                请联系管理员<br>
                电话：0471-888666
            </div>
        </div>
        <v-footer title="1" ref="footer"></v-footer>
    </div>
</template>
<script>
import header from './common/mheader'
import footer from './common/mfooter'
    export default {
        components: {
            'v-header': header,
            'v-footer': footer
        },
        data () {
            return {
                docHeight: '',
                headerHeight:0,
                footerHeight:0,
                success:false
            }
        },
        mounted () {
            this.headerHeight = this.$refs.header.$refs.headerbox.offsetHeight
            this.footerHeight = this.$refs.footer.$refs.footerbox.offsetHeight
            this.docHeight = (document.documentElement.clientHeight-this.headerHeight-this.footerHeight)+'px'
        },
        created () {

        },
        methods: {

        }
    }
</script>
<style>
.paydetail_box{
    padding: 0 61px;
    background: #000;
}
.paydetail{
    background: #fff;
    text-align: center;
    padding-top: 120px;
}
.paydetail img{
    width: 215px;
    height: 215px;
}
.paydetail_fail{
    background: #fff;
    text-align: center;
    padding: 120px 0 153px;
}
.paydetail_fail img{
    width: 190px;
    height: 190px;
}

.paydetail_title{
    font-size: 78px;
    color: #231815;
    line-height: 87px;
    padding-top: 36px;
}
.paydetail_fail_title{
    font-size: 69px;
    color: #231815;
    line-height: 87px;
    padding-top: 50px;
}
.paydetail_discount{
    color: #22CFB6;
    font-size: 156px;
    height: 156px;
    margin: 110px 0rem 22px 0rem;
}
.paydetail_discount span{
    font-size: 78px;
}
.paydetail_plus{
    font-size: 53px;
    line-height: 58px;
    color: #000;
    padding-bottom: 89px;
}
.paydetail_nav{
    background: #000;
    width: 100%;
    height: 0.1rem;
}
.paydetail_info{
    margin-top: 5px;
    background: #fff;
    font-size: 40px;
    color: #231815;
    line-height: 50px;
    padding: 37px 69px;
}
</style>